/**
 *  请求统一管理
 */
import Request from '../common/request';

//首页矿机列表
export const kjlist = () => Request.post('kuangji/kjlist');

//领取矿机
export const getkj = (data) => Request.post('kuangji/getkj',data);

//购买矿机
export const buykj = (data) => Request.post('kuangji/buykj',data);

//矿机中心页面数据
export const centerinfo = () => Request.post('kuangji/centerinfo')

//持有矿机列表
export const mykuangji = () => Request.post('kuangji/mykuangji')

//领取单个矿机btb
export const getKjmoney = (data) => Request.post('kuangji/get_kjmoney',data)

//领取所有矿机btb
export const getAllkjmoney = () => Request.post('kuangji/get_allkjmoney')

//BTB购买列表
export const tran_list = (data) => Request.post('tran/tran_list',data);

//BTB出售
export const sellbts = (data) => Request.post('tran/sellbts',data);

//BTB买入
export const buybts = (data) => Request.post('tran/buybts',data);

//订单详情列表
export const orderList = (data) => Request.post('tran/orderlist',data)

//订单撤销
export const cancelOrder = (data) => Request.post('tran/cancel_order',data)

//订单上传凭证
export const orderPay = (data) => Request.post('tran/order_pay',data)

//订单详情 传id
export const orderinfo = (data) => Request.post('tran/orderinfo',data)

//确认收款 传id
export const sureorder = (data) => Request.post('tran/sureorder',data)

